//
//  RootViewController.m
//  NewsReader
//
//  Created by Xiangxiang on 16/4/22.
//  Copyright © 2016年 GaoSir_. All rights reserved.
//

#import "RootViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:@"RootViewController" bundle:nibBundleOrNil];
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    MKScrollNews *scrollView = [[MKScrollNews alloc] init];
    scrollView.frame = CGRectMake(30, 50, 300, 130);
    scrollView.images = @[
                          [UIImage imageNamed:@"img_00"],
                          [UIImage imageNamed:@"img_01"],
                          [UIImage imageNamed:@"img_02"],
                          [UIImage imageNamed:@"img_03"],
                          [UIImage imageNamed:@"img_04"]
                          ];
    
    [self.view addSubview:scrollView];
    
    
    UILabel *myLable = [[UILabel alloc] init];
    myLable.frame = CGRectMake(50, 200, 200, 50);
    myLable.backgroundColor = [UIColor orangeColor];
    myLable.font = [UIFont systemFontOfSize:16];
    myLable.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:myLable];
    
    myLable.text = [NSString stringWithFormat:@"版本(%d) 第11次测试",APP_ENV];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end